const controller = require('../controllers/test')
const router = require('koa-router')();
const auth = require('../middlewares/auth')
//发表评论需要权限 accessToken 
// auth 中间件 抽离健全的功能 middlewares
// 1. accesstoken -> json uid
// 2. 任务继续交给comment 控制器 next
// 3. 拿到uid
router.post('/comment', auth ,controller.comment);
module.exports = router.routes();